n=int(input())
j=0
o=0
c=n
while c!=0:
    if (c%10)%2==0:
        o+=c%10
    else:
        j+=c%10
    j-=o
    print(j)
    






